package com.testMvc;

import com.alibaba.fastjson.JSONObject;
import com.core.netty.http.work.HttpMyReponse;
import com.core.netty.http.work.HttpMyRequest;
import com.core.springmvc.MyController;
import com.core.springmvc.MyRequestMapping;

import java.util.HashMap;
import java.util.Map;

@MyController
@MyRequestMapping("/GardenAction")
public class GardenAction {
    @MyRequestMapping("/getGardenInfo")
    public void getGardenInfo(HttpMyRequest req, HttpMyReponse rep) {
        Map<String, Object> m = new HashMap<>();

        m.put("name", "gg");
        m.put("value", "hh");

        rep.fullWrite(JSONObject.toJSONString(m));


    }
}
